package classification;

import java.util.Comparator;

import model.Category;
import model.Document;

public class CategoryComparator implements Comparator<Category> {

	@Override
	public int compare(Category cat1, Category cat2) {
		if (cat1.getTempWeight() < cat2.getTempWeight()){
			return -1;
		} else if (cat1.getTempWeight() > cat2.getTempWeight()){
			return 1;
		}
		return 0;
	}

}
